import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vite.dev/config/
export default defineConfig({
    plugins: [vue()],
    server: {
        proxy: {
            '/chat': {
                target: 'http://localhost:8080',
                changeOrigin: true,
                secure: false
            },
            "/dev-api": {
                target: "http://localhost:8080",
                rewrite: (p) => p.replace(/^\/dev-api/, ""),
            },
        }
    }
})
